<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
    <h3>
        Inputs</h3>
    <h5>Attributes:</h5>
    <table border="3">
        <tr bgcolor="#ddbbcc">
            <td colspan="6">OneDayModel.Tests.Fits.Fixtures.Definitions.<b><i>AttributesDefinitionFixture</i></b>
            </td>
        </tr>
        <tr bgcolor="#bbee00">
            <td>Name</td>
            <td>Display Name</td>
            <td>Required</td>
            <td>Visible</td>
            <td>Type</td>
            <td>Values Range</td>
        </tr>
        <tr>
            <td>Alias</td>
            <td>Alias</td>
            <td>yes</td>
            <td>yes</td>
            <td>System.String</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>Password</td>
            <td>Password</td>
            <td>yes</td>
            <td>yes</td>
            <td>System.String</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>eMail</td>
            <td>eMail</td>
            <td>yes</td>
            <td>yes</td>
            <td>System.String</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>AccountStatus</td>
            <td>&nbsp;</td>
            <td>yes</td>
            <td>no</td>
            <td>System.Enum</td>
            <td>notExist;existAndActive;existAndBanned;existAndWaitingForConfirmation</td>
        </tr>
        </table>
    <h5>
        Available Roles:</h5>
    <table border="3">
        <tr bgcolor="#ddbbcc">
            <td colspan="4">OneDayModel.Tests.Fits.Fixtures.Definitions.<b><i>RolesDefinitionFixture</i></b>
            </td>
        </tr>
        <tr bgcolor="#bbee00">
            <td>Name</td>
            <td>Public</td>
            <td>Parent Role</td>
            <td>Attributes</td>
        </tr>
        <tr>
            <td>Basic</td>
            <td>yes</td>
            <td></td>
            <td>Alias;Password;eMail</td>
        </tr>
    </table>
    <h5>
        Confirmation Service Settings:</h5>
    <table border="3">
        <tr bgcolor="#ddbbcc">
            <td colspan="5">OneDayModel.Tests.Fits.Fixtures.Definitions.<b><i>ConfirmationServiceDefinitionFixture</i></b>
            </td>
        </tr>
        <tr bgcolor="#bbee00">
            <td>Base Confirmation Id</td>
        </tr>
        <tr>
            <td>0</td>
        </tr>
    </table>
    <h3>
        Test scenario:</h3>
    <h5>
        1. Create new User</h5>
    <table border="3">
        <tr bgcolor="#00bbcf">
            <td colspan="3" style="height: 23px">OneDayModel.Tests.Fits.Fixtures.BaseActionFixture
            </td>
        </tr>
        <tr bgcolor="#cfbbcf">
            <td style="height: 23px">start</td>
            <td colspan="2" style="height: 23px">OneDayModel.Tests.Fits.Fixtures.Scenarios.<b><i>NewUserProfileFixture</i></b>
            </td>
        </tr>
        <tr>
            <td>press</td>
            <td colspan="2">New User</td>
        </tr>
        <tr>
            <td style="direction: ltr">enter</td>
            <td>Selected Roles</td>
            <td>Basic</td>
        </tr>
        <tr>
            <td>enter</td>
            <td>Fill Data</td>
            <td>Alias=alias;Password=password;eMail=email</td>
        </tr>
        <tr>
            <td>press</td>
            <td colspan="2">Save Profile</td>
        </tr>
    </table>
    <h5>
        2. Test that confirmation sent to user's mail</h5>
    <table border="3">
        <tr bgcolor="#00bbcf">
            <td colspan="3" style="height: 23px">OneDayModel.Tests.Fits.Fixtures.BaseActionFixture
            </td>
        </tr>
        <tr bgcolor="#cfbbcf">
            <td style="height: 23px">start</td>
            <td colspan="2" style="height: 23px">OneDayModel.Tests.Fits.Fixtures.Scenarios.<b><i>NewUserConfirmationFixture</i></b>
            </td>
        </tr>
        <tr>
            <td>check</td>
            <td>Sent Mails</td>
            <td>email=email subject=alias body=1</td>
        </tr>
    </table>
    <h4>
        Test outcome: current repository status</h4>
    <table border="3">
        <tr bgcolor="#ddbbcc">
            <td colspan="6">OneDayModel.Tests.Fits.Fixtures.Query.<b><i>UsersQueryFixture</i></b>
            </td>
        </tr>
        <tr bgcolor="#bbee00">
            <td>Alias</td>
            <td>Password</td>
            <td>eMail</td>
            <td>Roles</td>
            <td>Account Status</td>
            <td>Attributes</td>
        </tr>
        <tr>
            <td>alias</td>
            <td>password</td>
            <td>email</td>
            <td>Basic</td>
            <td>existAndWaitingForConfirmation</td>
            <td></td>
        </tr>
    </table>
    <table border="3">
        <tr bgcolor="#ddbbcc">
            <td colspan="6">OneDayModel.Tests.Fits.Fixtures.Query.<b><i>PendingConfirmationsQueryFixture</i></b>
            </td>
        </tr>
        <tr bgcolor="#bbee00">
            <td>User Alias</td>
            <td>Confirmation Id</td>
        </tr>
        <tr>
            <td>alias</td>
            <td>1</td>
        </tr>
    </table>
    <h3>
        Test Scenario - Continue:</h3>
    <h5>
        3. User confirm registration</h5>
    <table border="3">
        <tr bgcolor="#00bbcf">
            <td colspan="3" style="height: 23px">OneDayModel.Tests.Fits.Fixtures.BaseActionFixture
            </td>
        </tr>
        <tr>
            <td style="direction: ltr">enter</td>
            <td>Confirmation Arrived</td>
            <td>confirmation id=1</td>
        </tr>
    </table>
    <h4>Test outcome: repository status after confirmation</h4>
    <table border="3">
        <tr bgcolor="#ddbbcc">
            <td colspan="6">OneDayModel.Tests.Fits.Fixtures.Query.<b><i>UsersQueryFixture</i></b>
            </td>
        </tr>
        <tr bgcolor="#bbee00">
            <td>Alias</td>
            <td>Password</td>
            <td>eMail</td>
            <td>Roles</td>
            <td>Account Status</td>
            <td>Attributes</td>
        </tr>
        <tr>
            <td>alias</td>
            <td>password</td>
            <td>email</td>
            <td>Basic</td>
            <td>existAndActive</td>
            <td></td>
        </tr>
    </table>
    <table border="3">
        <tr bgcolor="#ddbbcc">
            <td colspan="6">OneDayModel.Tests.Fits.Fixtures.Query.<b><i>PendingConfirmationsQueryFixture</i></b>
            </td>
        </tr>
        <tr bgcolor="#bbee00">
            <td>User Alias</td>
            <td>Confirmation Id</td>
        </tr>
    </table>
    <h3>
        Test Scenario - Continue:</h3>
    <h5>
        3. User confirm registration again</h5>
    <table border="3">
        <tr bgcolor="#00bbcf">
            <td colspan="3" style="height: 23px">OneDayModel.Tests.Fits.Fixtures.BaseActionFixture
            </td>
        </tr>
        <tr>
            <td style="direction: ltr">enter</td>
            <td>Confirmation Arrived</td>
            <td>confirmation id=1</td>
        </tr>
    </table>
    <h4>Test outcome: repository status after confirmation - nothing changed, no exceptions:</h4>
    <table border="3">
        <tr bgcolor="#ddbbcc">
            <td colspan="6">OneDayModel.Tests.Fits.Fixtures.Query.<b><i>UsersQueryFixture</i></b>
            </td>
        </tr>
        <tr bgcolor="#bbee00">
            <td>Alias</td>
            <td>Password</td>
            <td>eMail</td>
            <td>Roles</td>
            <td>Account Status</td>
            <td>Attributes</td>
        </tr>
        <tr>
            <td>alias</td>
            <td>password</td>
            <td>email</td>
            <td>Basic</td>
            <td>existAndActive</td>
            <td></td>
        </tr>
    </table>
    <table border="3">
        <tr bgcolor="#ddbbcc">
            <td colspan="6">OneDayModel.Tests.Fits.Fixtures.Query.<b><i>PendingConfirmationsQueryFixture</i></b>
            </td>
        </tr>
        <tr bgcolor="#bbee00">
            <td>User Alias</td>
            <td>Confirmation Id</td>
        </tr>
    </table>
</body>
</html>
